/**
 * 
 */
package facade.client;

import com.google.gwt.core.client.JavaScriptObject;

import processing.core.PApplet;


import damkjer.ocd.Camera;

/**
 * @author cesar
 *
 */
public class JsniFacade {
	
	public static Camera CreateCamera(JavaScriptObject aParent,
            float   aCameraX, float aCameraY, float aCameraZ)
    {		
		return new Camera(new PApplet(aParent),aCameraX,  aCameraY,  aCameraZ);
    }

	public  native void publish() /*-{
									  
	   $wnd.Camera  = function(aParent,aCameraX,  aCameraY,  aCameraZ) {
	    	var Camera = 
	    	@facade.client.JsniFacade::CreateCamera(Lcom/google/gwt/core/client/JavaScriptObject;FFF)
	    	(aParent,aCameraX,  aCameraY,  aCameraZ);
	    	
	    	Camera.feed = Camera.@damkjer.ocd.Camera::feed();
	    	
			Camera.zoom = Camera.@damkjer.ocd.Camera::zoom(F);		    	
	    	
	    	return Camera;
	    }
			    	    	    		  
  	}-*/;		

}
